<?php

namespace Home\Controller;



class ServiceController extends HomeController {



    public function membership(){

    	$this->display();

    }



    public function profile(){

    	$this->display();

    }



    public function vip(){

    	$this->display();

    }



    public function mentor(){

    	$this->display();

    }



    public function refer(){

    	$this->display();

    }



    public function boot(){
        $map['cid']=25;
        import("Common.ORG.Page");
        $page = new \Page($count, 20);
        $obj = M('Article');
        $count = $obj->where($map)->count();
        $show = $page->show();
        $list = $obj->where($map)->order('id desc')->limit($page->firstRow . ',' . $page->listRows)->select();
        $this->assign('list', $list);
        $this->assign('page', $show);
        $this->display();
    }

    public function detail(){
        $id = I('get.id');
        $map['id'] = $id;
        $list = M('Article')->where($map)->find();
        if (!$list) {
            $this->error('The information does not exist');
        } 
        $this->assign('list',$list);
        $this->display();
    }  

}